import layout from '@/applicantlayout/index'

const applicantRouter = [
  {
    path: '/',
    component: layout,
    isParent: true,
    redirect: '/applicant/userInfo',
    meta: {
      title: '用户信息',
      icon: 'user'
    },
    children: [
      // 用户信息
      {
        path: '/applicant/userInfo',
        component: () => import('@/views/applicant/userinfo/index'),
        meta: {
          title: '用户信息',
          icon: 'user'
        }
      },
      // 学习经历
      {
        path: '/applicant/learn',
        component: () => import('@/views/applicant/learnexp/index'),
        meta: {
          title: '学习经历',
          icon: 'learn'
        }
      },
      // 规培经历
      {
        path: '/applicant/train',
        component: () => import('@/views/applicant/trainexp/index'),
        meta: {
          title: '规培经历',
          icon: 'train'
        }
      },
      // 工作经历
      {
        path: '/applicant/work',
        component: () => import('@/views/applicant/workexp/index'),
        meta: {
          title: '工作经历',
          icon: 'work'
        }
      },
      // 申请总览
      {
        path: '/applicant/apply',
        component: () => import('@/views/applicant/apply-summary/index'),
        meta: {
          title: '申请管理',
          icon: 'applyManage'
        }
      },
      {
        path: '/applicant/jobs',
        component: () => import('@/views/applicant/job/index'),
        meta: {
          title: '岗位预览',
          icon: 'jobs'
        }
      }
    ]
  }
]

export default applicantRouter
